package cn.koala.key.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@ApiModel(value="钥匙信息")
public class KeyInfo {
    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    private Long id;

    /**
     * 仓库位置
     */
    @ApiModelProperty("仓库位置")
    @NotNull(message="warehouse_location参数不能为空")
    @Size(max=12,min=0,message="warehouse_location长度超过")
    private String warehouseLocation;

    /**
     * 钥匙条形码
     */
    @ApiModelProperty("钥匙条形码")
    @NotNull(message="key_bar_code参数不能为空")
    private String keyBarCode;

    /**
     * 状态  1-借出，2-在库，3-挂失
     */
    @ApiModelProperty("状态  1-借出，2-在库，3-挂失")
    @NotNull(message="key_status参数不能为空")
    private Integer keyStatus;

    /**
     * 车系id（考拉库）
     */
    @ApiModelProperty("车系id（考拉库）")
    @NotNull(message="series_id参数不能为空")
    private Integer seriesId;

    /**
     * 车架号
     */
    @ApiModelProperty("车架号")
    @NotNull(message="car_vin参数不能为空")
    @Size(max=32,min=0,message="car_vin长度超过")
    private String carVin;

    /**
     * 车牌号
     */
    @ApiModelProperty("车牌号")
    @NotNull(message="car_no参数不能为空")
    @Size(max=10,min=0,message="car_no长度超过")
    private String carNo;

    /**
     * 品牌id（考拉）
     */
    @ApiModelProperty("品牌id（考拉）")
    @NotNull(message="brand_id参数不能为空")
    private Integer brandId;

    /**
     * 录入时间
     */
    @ApiModelProperty("录入时间")
    @NotNull(message="add_time参数不能为空")
    private Date addTime;

    /**
     * 品牌名称
     */
    @ApiModelProperty("品牌名称")
    @NotNull(message="brand_name参数不能为空")
    @Size(max=15,min=0,message="brand_name长度超过")
    private String brandName;

    /**
     * 车系名称
     */
    @ApiModelProperty("车系名称")
    @NotNull(message="series_name参数不能为空")
    @Size(max=15,min=0,message="series_name长度超过")
    private String seriesName;

    /**
     * 主动创建时间
     */
    @ApiModelProperty("主动创建时间")
    @NotNull(message="gmt_create参数不能为空")
    private Date gmtCreate;

    /**
     * 被动更新时间
     */
    @ApiModelProperty("被动更新时间")
    @NotNull(message="gmt_modified参数不能为空")
    private Date gmtModified;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWarehouseLocation() {
        return warehouseLocation;
    }

    public void setWarehouseLocation(String warehouseLocation) {
        this.warehouseLocation = warehouseLocation;
    }

    public String getKeyBarCode() {
        return keyBarCode;
    }

    public void setKeyBarCode(String keyBarCode) {
        this.keyBarCode = keyBarCode;
    }

    public Integer getKeyStatus() {
        return keyStatus;
    }

    public void setKeyStatus(Integer keyStatus) {
        this.keyStatus = keyStatus;
    }

    public Integer getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Integer seriesId) {
        this.seriesId = seriesId;
    }

    public String getCarVin() {
        return carVin;
    }

    public void setCarVin(String carVin) {
        this.carVin = carVin;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}